Home
last modified time | relevance | path

Searched refs:Marshal (Results 1 – 25 of 12910) sorted by relevance

12345678910>>...517

/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/marshal/
H A Ddump_spec.rb7 Marshal.dump(nil).should == "\004\b0"
86 initial = Marshal.dump(obj)
119 Marshal.dump(m)
147 Marshal.dump(Marshal).should == "\004\bm\fMarshal"
396 Marshal.dump(obj)
408 dump = Marshal.dump(1..2)
409 load = Marshal.load(dump)
415 load = Marshal.load(dump)
423 load = Marshal.load(dump)
451 dump = Marshal.dump(@t)
[all …]
H A Dfloat_spec.rb5 Marshal.dump(nan_value).should == "\004\bf\bnan"
9 Marshal.dump(infinity_value).should == "\004\bf\binf"
13 Marshal.dump(-infinity_value).should == "\004\bf\t-inf"
17 Marshal.dump(0.0).should == "\004\bf\0060"
21 Marshal.dump(0.666666667).should == "\x04\bf\x100.666666667"
29 Marshal.dump(42.666666667).should == "\x04\bf\x1142.666666667"
43 Marshal.load("\004\bf\bnan").should be_nan
47 Marshal.load("\004\bf\binf").should == infinity_value
51 Marshal.load("\004\bf\t-inf").should == -infinity_value
55 Marshal.load("\004\bf\0060").should == 0.0
[all …]
/dports/lang/ruby26/ruby-2.6.9/test/ruby/
H A Dtest_marshal.rb19 Marshal.dump(o)
23 Marshal.load(s)
38 assert_equal a, Marshal.load(Marshal.dump(a))
42 assert_equal obj, Marshal.load(Marshal.dump(obj))
47 assert_equal(x, Marshal.load(Marshal.dump(x)), bug3659)
300 b = Marshal.load(Marshal.dump(a))
309 b = Marshal.load(Marshal.dump(a))
470 o2 = Marshal.load(Marshal.dump(o1))
506 c2 = Marshal.load(Marshal.dump(c).taint)
627 Marshal.load(Marshal.dump(x).taint).tainted?
[all …]
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/marshal/shared/
H A Dload.rb67 b = Marshal.send(@method, Marshal.dump(a), nil)
187 y = Marshal.send(@method, Marshal.dump(x))
201 y = Marshal.send(@method, Marshal.dump([[x]]))
209 y = Marshal.send(@method, Marshal.dump(x).taint)
216 y = Marshal.send(@method, Marshal.dump(x).taint)
223 y = Marshal.send(@method, Marshal.dump(x).taint)
230 y = Marshal.send(@method, Marshal.dump(x).taint)
240 y = Marshal.send(@method, Marshal.dump(a))
248 y = Marshal.send(@method, Marshal.dump(x))
255 y = Marshal.send(@method, Marshal.dump(x))
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/
H A DMarshalTests.cs46 Marshal.ZeroFreeBSTR(bstr); in SecureStringToBSTR()
133 IntPtr p = Marshal.AllocHGlobal(size); in AllocHGlobal_Int32_ReadableWritable()
142 Marshal.FreeHGlobal(p); in AllocHGlobal_Int32_ReadableWritable()
161 Marshal.FreeHGlobal(p); in AllocHGlobal_IntPtr_ReadableWritable()
185 Marshal.FreeHGlobal(p2); in ReAllocHGlobal_DataCopied()
195 IntPtr p = Marshal.AllocCoTaskMem(size); in AllocCoTaskMem_Int32_ReadableWritable()
204 Marshal.FreeCoTaskMem(p); in AllocCoTaskMem_Int32_ReadableWritable()
228 Marshal.FreeCoTaskMem(p2); in ReAllocCoTaskMem_DataCopied()
236 Marshal.WriteByte(p + i, (byte)i); in WriteBytes()
435 Marshal.FreeCoTaskMem(ptr); in StringToCoTaskMemAuto_PtrToStringAuto_ReturnsExpected()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/corlib/Test/System.Runtime.InteropServices/
H A DMarshalTest.cs221 Marshal.FreeHGlobal (ptr); in AllocHGlobalZeroSize()
229 Marshal.FreeCoTaskMem (ptr); in AllocCoTaskMemZeroSize()
343 Marshal.FreeHGlobal (ptr); in ReadIntByte()
361 Marshal.FreeHGlobal (ptr); in ReadInt16()
379 Marshal.FreeHGlobal (ptr); in ReadInt32()
399 Marshal.FreeHGlobal (ptr); in ReadInt32_Endian()
414 Marshal.FreeHGlobal (ptr); in ReadInt64()
442 Marshal.FreeBSTR (ptr); in StringToBSTRWithNullValues()
595 Marshal.ZeroFreeBSTR (p); in SecureStringToBSTR()
814 Marshal.FreeHGlobal (mem); in TestGlobalAlloc()
[all …]
/dports/lang/mono/mono-5.10.1.57/mono/tests/
H A Dmarshal7.cs142 IntPtr p = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(TestStruct1))); in Main()
146 if (Marshal.ReadInt32(p, (int)Marshal.OffsetOf(testType, "a")) != myStruct.a) in Main()
149 Marshal.FreeHGlobal(p); in Main()
160 p = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(TestStruct2))); in Main()
164 if (Marshal.ReadInt32(p, (int)Marshal.OffsetOf(testType2, "b")) != myStruct2.b) in Main()
167 Marshal.FreeHGlobal(p); in Main()
178 p = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(TestStruct3))); in Main()
183 if(Marshal.ReadInt32(p, (int)Marshal.OffsetOf(testType3, "b")) != myStruct3.b) in Main()
186 if (Marshal.ReadInt32(p, (int)Marshal.OffsetOf(testType3, "c")) != myStruct3.c) in Main()
189 Marshal.FreeHGlobal(p); in Main()
[all …]
H A Dmarshal2.cs101 if (Marshal.ReadInt32 (p, (int)Marshal.OffsetOf (t, "a")) != 1) in test_0_structure_to_ptr()
103 if (Marshal.ReadInt32 (p, (int)Marshal.OffsetOf (t, "bool1")) != 1) in test_0_structure_to_ptr()
105 if (Marshal.ReadInt32 (p, (int)Marshal.OffsetOf (t, "bool2")) != 0) in test_0_structure_to_ptr()
107 if (Marshal.ReadInt32 (p, (int)Marshal.OffsetOf (t, "b")) != 2) in test_0_structure_to_ptr()
119 if (Marshal.ReadByte (p, 23) != 0) in test_0_structure_to_ptr()
129 if (Marshal.ReadByte (p, (int)Marshal.OffsetOf (t, "a2")) != 97) in test_0_structure_to_ptr()
131 if (Marshal.ReadByte (p, (int)Marshal.OffsetOf (t, "a2") + 1) != 98) in test_0_structure_to_ptr()
197 IntPtr p2 = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (ByValTStrStruct))); in test_0_byvaltstr()
235 IntPtr p2 = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (ByValWStrStruct))); in test_0_byvaltstr_unicode()
285 Marshal.WriteInt32 (p, 0, 1); //a in test_0_generic_ptr_to_struct()
[all …]
H A Dmarshal8.cs54 IntPtr p = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Dummy))); in Main()
55 Marshal.StructureToPtr(dummy, p, false); in Main()
80 Marshal.PtrToStructure(p, dummy2); in Main()
93 Marshal.FreeHGlobal(p); in Main()
100 IntPtr fc_ptr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(FormattedClass))); in Main()
101 Marshal.StructureToPtr(fc, fc_ptr, false); in Main()
102 Marshal.PtrToStructure(fc_ptr, fc); in Main()
105 Marshal.FreeHGlobal(fc_ptr); in Main()
111 IntPtr str_ptr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Struct))); in Main()
113 Marshal.PtrToStructure(str_ptr, str); in Main()
[all …]
/dports/net/opal/opal-3.10.10/samples/dotnet/OpalDotNET/
H A DOpalContext.cs1074 get { return Marshal.PtrToStringAnsi(m_param.m_prefix); }
1372 get { return Marshal.PtrToStringAnsi(m_param.m_error); }
1462 get { return Marshal.PtrToStringAnsi(m_param.m_partyA); }
1480 get { return Marshal.PtrToStringAnsi(m_param.m_partyB); }
1804 get { return Marshal.PtrToStringAnsi(m_param.m_party); }
1813 get { return Marshal.PtrToStringAnsi(m_param.m_type); }
1851 get { return Marshal.PtrToStringAnsi(m_param.m_line); }
1883 get { return Marshal.PtrToStringAnsi(m_param.m_callId); }
2034 get { return Marshal.PtrToStringAnsi(m_param.m_type); }
2143 get { return Marshal.PtrToStringAnsi(m_param.m_file); }
[all …]
/dports/multimedia/navidrome/navidrome-0.40.0/server/subsonic/responses/
H A Dresponses_test.go27 Expect(xml.Marshal(response)).To(MatchSnapshot())
30 Expect(json.Marshal(response)).To(MatchSnapshot())
39 Expect(xml.Marshal(response)).To(MatchSnapshot())
42 Expect(json.Marshal(response)).To(MatchSnapshot())
53 Expect(xml.Marshal(response)).To(MatchSnapshot())
56 Expect(json.Marshal(response)).To(MatchSnapshot())
69 Expect(xml.Marshal(response)).To(MatchSnapshot())
72 Expect(json.Marshal(response)).To(MatchSnapshot())
84 Expect(xml.Marshal(response)).To(MatchSnapshot())
87 Expect(json.Marshal(response)).To(MatchSnapshot())
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Drawing.Common/src/System/Drawing/Imaging/
H A DEncoderParameter.cs83 Marshal.FreeHGlobal(_parameterValue); in Dispose()
93 _parameterValue = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Byte))); in EncoderParameter()
98 Marshal.WriteByte(_parameterValue, value); in EncoderParameter()
111 _parameterValue = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Byte))); in EncoderParameter()
116 Marshal.WriteByte(_parameterValue, value); in EncoderParameter()
126 _parameterValue = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Int16))); in EncoderParameter()
141 _parameterValue = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Int32))); in EncoderParameter()
156 int size = Marshal.SizeOf(typeof(Int32)); in EncoderParameter()
173 int size = Marshal.SizeOf(typeof(Int32)); in EncoderParameter()
413 Marshal.WriteByte(Add(_parameterValue, i), Marshal.ReadByte((IntPtr)(Value + i))); in EncoderParameter()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.DirectoryServices/src/System/DirectoryServices/ActiveDirectory/
H A DForestTrustRelationshipInformation.cs124 fileTime = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(FileTime))); in Save()
144 … tmpPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(LSA_FOREST_TRUST_RECORD))); in Save()
173 … tmpPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(LSA_FOREST_TRUST_RECORD))); in Save()
210 … tmpPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(LSA_FOREST_TRUST_RECORD))); in Save()
225 … tmpPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(LSA_FOREST_TRUST_RECORD))); in Save()
248 … tmpPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(LSA_FOREST_TRUST_RECORD))); in Save()
262 … forestInfo = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(LSA_FOREST_TRUST_INFORMATION))); in Save()
320 Marshal.FreeHGlobal(records); in Save()
332 Marshal.FreeHGlobal(target); in Save()
335 Marshal.FreeHGlobal(fileTime); in Save()
[all …]
/dports/security/vault/vault-1.8.2/vendor/honnef.co/go/tools/staticcheck/testdata/src/CheckNoopMarshal/
H A DCheckNoopMarshal.go47 json.Marshal(T1{})
53 json.Marshal(T3{})
55 json.Marshal(&T3{})
57 json.Marshal(T4{})
59 json.Marshal(t5{})
61 json.Marshal(T6{})
63 json.Marshal(T7{})
67 json.Marshal(T9{})
71 json.Marshal(T12{})
73 json.Marshal(T14{})
[all …]
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/workhorse/vendor/honnef.co/go/tools/staticcheck/testdata/src/CheckNoopMarshal/
H A DCheckNoopMarshal.go47 json.Marshal(T1{})
53 json.Marshal(T3{})
55 json.Marshal(&T3{})
57 json.Marshal(T4{})
59 json.Marshal(t5{})
61 json.Marshal(T6{})
63 json.Marshal(T7{})
67 json.Marshal(T9{})
71 json.Marshal(T12{})
73 json.Marshal(T14{})
[all …]
/dports/security/vuls/vuls-0.13.7/vendor/honnef.co/go/tools/staticcheck/testdata/src/CheckNoopMarshal/
H A DCheckNoopMarshal.go47 json.Marshal(T1{})
53 json.Marshal(T3{})
55 json.Marshal(&T3{})
57 json.Marshal(T4{})
59 json.Marshal(t5{})
61 json.Marshal(T6{})
63 json.Marshal(T7{})
67 json.Marshal(T9{})
71 json.Marshal(T12{})
73 json.Marshal(T14{})
[all …]
/dports/net-mgmt/thanos/thanos-0.11.0/vendor/honnef.co/go/tools/staticcheck/testdata/src/CheckNoopMarshal/
H A DCheckNoopMarshal.go47 json.Marshal(T1{})
53 json.Marshal(T3{})
55 json.Marshal(&T3{})
57 json.Marshal(T4{})
59 json.Marshal(t5{})
61 json.Marshal(T6{})
63 json.Marshal(T7{})
67 json.Marshal(T9{})
71 json.Marshal(T12{})
73 json.Marshal(T14{})
[all …]
/dports/sysutils/terraform-docs/terraform-docs-0.16.0/vendor/honnef.co/go/tools/staticcheck/testdata/src/CheckNoopMarshal/
H A DCheckNoopMarshal.go47 json.Marshal(T1{})
53 json.Marshal(T3{})
55 json.Marshal(&T3{})
57 json.Marshal(T4{})
59 json.Marshal(t5{})
61 json.Marshal(T6{})
63 json.Marshal(T7{})
67 json.Marshal(T9{})
71 json.Marshal(T12{})
73 json.Marshal(T14{})
[all …]
/dports/multimedia/navidrome/navidrome-0.40.0/vendor/honnef.co/go/tools/staticcheck/testdata/src/CheckNoopMarshal/
H A DCheckNoopMarshal.go47 json.Marshal(T1{})
53 json.Marshal(T3{})
55 json.Marshal(&T3{})
57 json.Marshal(T4{})
59 json.Marshal(t5{})
61 json.Marshal(T6{})
63 json.Marshal(T7{})
67 json.Marshal(T9{})
71 json.Marshal(T12{})
73 json.Marshal(T14{})
[all …]
/dports/lang/ghc/ghc-8.10.7/libraries/base/Foreign/
H A DMarshal.hs18 module Foreign.Marshal
22 module Foreign.Marshal.Alloc
23 , module Foreign.Marshal.Array
24 , module Foreign.Marshal.Error
25 , module Foreign.Marshal.Pool
26 , module Foreign.Marshal.Utils
29 import Foreign.Marshal.Alloc
30 import Foreign.Marshal.Array
31 import Foreign.Marshal.Error
32 import Foreign.Marshal.Pool
[all …]
/dports/lang/ghc/ghc-8.10.7/libraries/base/Foreign/Marshal/
H A DSafe.hs20 module Foreign.Marshal.Safe {-# DEPRECATED "Safe is now the default, please use Foreign.Marshal ins…
24 module Foreign.Marshal.Alloc
25 , module Foreign.Marshal.Array
26 , module Foreign.Marshal.Error
27 , module Foreign.Marshal.Pool
28 , module Foreign.Marshal.Utils
31 import Foreign.Marshal.Alloc
32 import Foreign.Marshal.Array
33 import Foreign.Marshal.Error
34 import Foreign.Marshal.Pool
[all …]
/dports/devel/stack/stack-2.7.3/_cabal_deps/base-compat-0.11.2/src/Foreign/Marshal/Safe/
H A DCompat.hs2 module Foreign.Marshal.Safe.Compat (
5 module Foreign.Marshal.Alloc
6 , module Foreign.Marshal.Array
7 , module Foreign.Marshal.Error
8 , module Foreign.Marshal.Pool
9 , module Foreign.Marshal.Utils
12 import Foreign.Marshal.Alloc
13 import Foreign.Marshal.Array
14 import Foreign.Marshal.Error
15 import Foreign.Marshal.Pool
[all …]
/dports/math/hs-Agda/Agda-2.6.2/_cabal_deps/base-compat-0.11.1/src/Foreign/Marshal/Safe/
H A DCompat.hs2 module Foreign.Marshal.Safe.Compat (
5 module Foreign.Marshal.Alloc
6 , module Foreign.Marshal.Array
7 , module Foreign.Marshal.Error
8 , module Foreign.Marshal.Pool
9 , module Foreign.Marshal.Utils
12 import Foreign.Marshal.Alloc
13 import Foreign.Marshal.Array
14 import Foreign.Marshal.Error
15 import Foreign.Marshal.Pool
[all …]
/dports/finance/hs-hledger/hledger-1.19/_cabal_deps/base-compat-0.11.1/src/Foreign/Marshal/Safe/
H A DCompat.hs2 module Foreign.Marshal.Safe.Compat (
5 module Foreign.Marshal.Alloc
6 , module Foreign.Marshal.Array
7 , module Foreign.Marshal.Error
8 , module Foreign.Marshal.Pool
9 , module Foreign.Marshal.Utils
12 import Foreign.Marshal.Alloc
13 import Foreign.Marshal.Array
14 import Foreign.Marshal.Error
15 import Foreign.Marshal.Pool
[all …]
/dports/games/hedgewars-server/hedgewars-src-1.0.0/gameServer/_cabal_deps/base-compat-0.11.1/src/Foreign/Marshal/Safe/
H A DCompat.hs2 module Foreign.Marshal.Safe.Compat (
5 module Foreign.Marshal.Alloc
6 , module Foreign.Marshal.Array
7 , module Foreign.Marshal.Error
8 , module Foreign.Marshal.Pool
9 , module Foreign.Marshal.Utils
12 import Foreign.Marshal.Alloc
13 import Foreign.Marshal.Array
14 import Foreign.Marshal.Error
15 import Foreign.Marshal.Pool
[all …]

12345678910>>...517