evanescente-ondine

tupplespacepackage-realtupples.ads

May 13th, 2026
73
0
Never
6
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 2.50 KB | Source Code | 0 0
  1. pragma Ada_2022;
  2. with Ada.Strings.Unbounded;
  3. private with Ada.Containers.Vectors, Ada.Containers.Hashed_Maps, Ada.Strings.Hash, Ada.Streams.Storage.Unbounded, Ada.Tags, Ada.Finalization;
  4.  
  5. package tupplespacepackage.RealTupples is
  6.  
  7.    type MyMapType is limited private;
  8.    protected type RealTuppleSpace is new TuppleSpace with
  9.       overriding procedure Out_Operation (T : Tupple'Class);
  10.       overriding entry In_Operation (Result : out Tupple'Class);
  11.       overriding entry RD_Operation (Result : out Tupple'Class);
  12.       overriding procedure Inp_Operation (Result : out Tupple'Class);
  13.       overriding procedure RDP_Operation (Result : out Tupple'Class);
  14.    private
  15.       The_Map : MyMapType;
  16.    end RealTuppleSpace;
  17.    
  18.    type Integer_Positive_String_Tupple is new Tupple with record
  19.       I   : Integer;
  20.       Pos : Positive;
  21.       A   : Ada.Strings.Unbounded.Unbounded_String;
  22.    end record;
  23.  
  24.    type String_String_Tupple is new Tupple with record
  25.       A, B : Ada.Strings.Unbounded.Unbounded_String;
  26.    end record;
  27.  
  28.   function Encode (I : Integer; Pos : Positive; A : String)
  29.      return Integer_Positive_String_Tupple is (I, Pos, Ada.Strings.Unbounded.To_Unbounded_String (A));
  30.    function Encode (A, B : String) return String_String_Tupple is (Ada.Strings.Unbounded.To_Unbounded_String (A), Ada.Strings.Unbounded.To_Unbounded_String (B));
  31.  
  32. private
  33.  
  34.    use Ada.Streams.Storage.Unbounded, Ada.Tags, Ada.Finalization;
  35.     type AccessStream is access Stream_Type;
  36.  
  37.     type FinalizedType is new Controlled with record
  38.         Stream: not null AccessStream := new Stream_Type;
  39.     end record;
  40.     overriding procedure Finalize (Finale: in out FinalizedType);
  41.     package newQueues is new Ada.Containers.Vectors
  42.      (Positive, FinalizedType);
  43.    subtype Queue is newQueues.Vector;
  44.  
  45.    function Hash (A : Ada.Tags.Tag) return Ada.Containers.Hash_Type
  46.      is (Ada.Strings.Hash (Ada.Tags.External_Tag (A)));
  47.  
  48.    protected type LockedQueue is
  49.       procedure Out_Operation (T : Tupple'Class);
  50.       entry In_Operation (Result : out Tupple'Class);
  51.       entry RD_Operation (Result : out Tupple'Class);
  52.    private
  53.       PatternQueue : aliased Queue;
  54.    end LockedQueue;
  55.  
  56.    type AccessToProtected is access LockedQueue;
  57.    package newMaps is new Ada.Containers.Hashed_Maps
  58.      (Key_Type        => Ada.Tags.Tag,
  59.       Element_Type    => AccessToProtected,
  60.       Hash            => Hash,
  61.       Equivalent_Keys => "=");
  62.  
  63.    type MyMapType is new newMaps.Map with null record;
  64.  
  65. end tupplespacepackage.RealTupples;
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Caximce
    23 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Hokqolom
    22 hours
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=ykleyvntee
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment